﻿<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title>来加健康服务网</title>
    <meta name="Keywords" content="来加健康服务网">
    <meta name="Description" content="体检问答">
    <meta name="applicable-device" content="mobile">
    <meta name="location" content="province=河北;city=厦门">
    <!-- 移动设备支持 -->
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
    <meta content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport">
    <meta content="no-cache,must-revalidate" http-equiv="Cache-Control">
    <meta content="no-cache" http-equiv="pragma">
    <meta content="0" http-equiv="expires">
    <meta content="telephone=no, address=no" name="format-detection">
    <!--<meta name="apple-mobile-web-app-capable" content="yes"> -->
    <!--<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">-->
    <meta name="apple-touch-fullscreen" content="yes">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telephone=no">
    <!--<meta name="x5-fullscreen" content="true">-->

    <link href="Public/mobile/css/common.css?64" rel="stylesheet" type="text/css">
    <link href="Public/mobile/css/new.css?65" rel="stylesheet" type="text/css">
    <link href="Public/mobile/js/layer/need/layer.css" rel="stylesheet" type="text/css">
    <link href="Public/mobile/js/layerModel/layerModel.css" rel="stylesheet" type="text/css">

    <link href="Public/mobile/css/ask.css?version=201504300917" rel="stylesheet" type="text/css">
    <script src="../Scripts/jquery-1.8.3.min.js"></script>

    <script>
        var Tiid;
        var ttid;
        $(document).ready(function () {
            $.ajax({
                type: "get",
                url: "/ClassifyType/GetClassTyep",
                success:function(d)
                {
                    $(d).each(function (i, obj) {
                        
                        var tr = '<div class="wd-wtfl"  ><input type="radio" onclick="Typeid(' + obj.Id + ')" name="classCode"  value="' + obj.Id + '" class="xz rqcheck"><label class="xzsp">' + obj.Name + '</label></div>';
                        $("#ifyType").append(tr);
                    })
                }


            });

            
                
            

        });
        function Typeid(id) {
            Tiid = id;
            $("#dvsclass1").empty();
            
            $.ajax({
                type: "get",
                url: "/ClassifyType/GetClass",
                data: {
                    "Tid": id
                },
                success: function (d) {
                    $(d).each(function (i, obj) {

                        var tr = '<div class="wd-wtfl"><input type="radio" onclick="chuanID(' + obj.Id + ')" name="sclass" value="' + obj.Id + '" class="xz tccheck" /><span class="xzsp">' + obj.Name + '</span> </div> ';
                        
                        $("#dvsclass1").append(tr);
                    })
                }
            })
        }
        ///保存一下ID
        function chuanID(id)
        {
            ttid=id;
        }

        function tijiao()
        {
            
            var sex="";
            if ($('#sex').val() == 1)
            {
                sex = "男";
            }
            else
            {
                sex = "女";
            }
            $.ajax({
                type: "get",
                url: "/Api/QueAdd",
                data:
                    {
                        "content": $("#content").val(),
                        "Qage": $("#age").val(),
                        "Qsex": sex,
                        "Qphone": $("#mobile").val(),
                        "Qstate": "未解答",
                        "Uid": 0,
                        "Qdate": "2016-05-06",
                        "Tid": Tiid,
                        "ttid": ttid

                        },
                success: function (d) {
                    if(d>0)
                    {
                        alert('问题提交成功');
                        location.href = 'Ask.html';
                    }
                    else
                    {
                        alert('问题提交失败');
                    }
                }

            })
        }


    </script>

</head>
<body>
   <header class="header">
    <a class="fh_btn" href="javascript:;"></a>
      <h2>我要提问</h2>
                <a class="hom_icon" href="Index.html"></a>
        </header>
<div style="height:50px"></div>
  
<div class="main clear rel">
  <form method="post" id="Form1">
    <div class="tw-box p10">
      <div class="none user-tsbox" id="errmsg"  > </div> 
      <div class="inside1">
        <div class="p10 border bor_radius whitebg">
          <textarea class="textare f12" placeholder="请尽可能详细地描述您的症状、疾病和身体状况，以便得到医生更好的解答。" name="content" id="content"></textarea>
        </div>
      </div>
      <!--输入框结束-->
      <div class="bor_top pad_tb bor_bott color44 h45">  
       <div class="color44 fn14 fl">人群：</div> 
                            <div class="wd-wtfl"><input type="radio" name="classCode" value="1" class="xz rqcheck"><label class="xzsp">儿童</label></div>
                     <div class="wd-wtfl"><input type="radio" name="classCode" value="2" class="xz rqcheck"><label class="xzsp">青年</label></div>
                     <div class="wd-wtfl"><input type="radio" name="classCode" value="3" class="xz rqcheck"><label class="xzsp">中年</label></div>
                     <div class="wd-wtfl"><input type="radio" name="classCode" value="4" class="xz rqcheck"><label class="xzsp">老年</label></div>
              <div style="clear:both;"></div> 
                  <div style="display:none" id="dvsclass1" class="wtfl-box"> 
                <div class="wd-wtfl"><input type="radio" name="sclass" value="1" class="xz tccheck" /><span class="xzsp">基础体检</span> </div> 
                <div class="wd-wtfl"><input type="radio" name="sclass" value="5" class="xz tccheck" /><span class="xzsp">全身体检</span> </div> 
              </div>
                  <div style="display:none" id="dvsclass2" class="wtfl-box"> 
                <div class="wd-wtfl"><input type="radio" name="sclass" value="1" class="xz tccheck" /><span class="xzsp">基础体检</span> </div> 
                <div class="wd-wtfl"><input type="radio" name="sclass" value="2" class="xz tccheck" /><span class="xzsp">入职体检</span> </div> 
                <div class="wd-wtfl"><input type="radio" name="sclass" value="3" class="xz tccheck" /><span class="xzsp">防癌体检</span> </div> 
                <div class="wd-wtfl"><input type="radio" name="sclass" value="4" class="xz tccheck" /><span class="xzsp">婚前体检</span> </div> 
                <div class="wd-wtfl"><input type="radio" name="sclass" value="5" class="xz tccheck" /><span class="xzsp">全身体检</span> </div> 
                <div class="wd-wtfl"><input type="radio" name="sclass" value="6" class="xz tccheck" /><span class="xzsp">白领体检</span> </div> 
                <div class="wd-wtfl"><input type="radio" name="sclass" value="7" class="xz tccheck" /><span class="xzsp">妇科体检</span> </div> 
                <div class="wd-wtfl"><input type="radio" name="sclass" value="8" class="xz tccheck" /><span class="xzsp">孕前体检</span> </div> 
              </div>
                  <div style="display:none" id="dvsclass3" class="wtfl-box"> 
                <div class="wd-wtfl"><input type="radio" name="sclass" value="1" class="xz tccheck" /><span class="xzsp">基础体检</span> </div> 
                <div class="wd-wtfl"><input type="radio" name="sclass" value="2" class="xz tccheck" /><span class="xzsp">入职体检</span> </div> 
              </div>
                  <div style="display:none" id="dvsclass4" class="wtfl-box"> 
                <div class="wd-wtfl"><input type="radio" name="sclass" value="1" class="xz tccheck" /><span class="xzsp">基础体检</span> </div> 
                <div class="wd-wtfl"><input type="radio" name="sclass" value="3" class="xz tccheck" /><span class="xzsp">防癌体检</span> </div> 
                <div class="wd-wtfl"><input type="radio" name="sclass" value="5" class="xz tccheck" /><span class="xzsp">全身体检</span> </div> 
                <div class="wd-wtfl"><input type="radio" name="sclass" value="7" class="xz tccheck" /><span class="xzsp">妇科体检</span> </div> 
              </div>
          </div> 
    <div style="padding-bottom:15px;" class="mt-10 bor_bott">
      <label class="fn14 color44 mt-3">年龄：</label><input type="text" placeholder="选填" class="mobnum bor_radius fn14 inpu_pho" id="age" name="age" />
    </div>
    <!--年龄结束-->
    <div class="sex_select">
      <p class="inlin bor_top bor_bott fn14">
        <input type="hidden" value="1" name="sex" id="sex"/>
        <span class="color44 mar_r20">性别：</span> 
        <a class="border_n" data="1"><span class="no_select clearfx b_select"></span>男</a>
        <a class="border_n" data="0"><span class="no_select clearfx nv "></span>女</a> 
      </p>
    </div>
    <!--性别结束-->
    <div class="mar_t22">
      <label class="fn14 color44 mt-3">手机：</label><input type="text" placeholder="选填" class="mobnum bor_radius fn14 inpu_pho" id="mobile" name="mobile" /><span class="grey2 fn13 mt-3"></span>
      <div class="clearfix"></div>
      <input type="button" class="anssub1 bor_radius" value="提&nbsp;&nbsp;&nbsp;&nbsp;交" id="AddTopic"/>
    </div> 
  </div> 
  <input type="hidden" value="" name="auid" />
</form>
</div>
<div class="clear"></div>

<div id="footer" style="width: 100%;max-width: 640px;">

<div style="height:70px;"></div>
<div class="clear"></div>
  <ul class="foot-list">
    <li style="width: 25%;" ><a href="Index.html"><img src="Public/mobile/images/n_6.png"><p>首页</p></a></li>
    <li style="width: 25%;" ><a onclick="qimoChatClick();"><img src="Public/mobile/images/n_7.png"><p>咨询</p></a></li>
    <li style="width: 25%;"><a href="find_health.html"><img src="Public/mobile/images/n_8.png"><p>发现</p></a></li>
    <li style="width: 25%;" ><a href="member.html"><img src="Public/mobile/images/n_9.png"><p>我的</p></a></li>
  </ul>

</div>

    <script type="text/javascript">
        // 定义一些常量
        var __appId = "";			        // 必填，公众号的唯一标识
        var __timestamp = ""; 	// 必填，生成签名的时间戳
        var __nonceStr = ""; 		// 必填，生成签名的随机串
        var __signature = "";	// 必填，签名，见附录1
        var __public = '/Public';
        var __baiduak = "FE5a0df097aaacb5b50fe2c75fd2de0f";
        var __refererType__ = "normal";
        var __indexUrl__ = "/";//默认的首页地址,即当返回到顶层时的地址
    </script>
    <script type="text/javascript" src="http://libs.baidu.com/jquery/1.9.1/jquery.min.js"></script>
    <!-- <script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script> -->
    <script type="text/javascript" src="Public/mobile/js/My97DatePicker/WdatePicker.js"></script>
    <script type="text/javascript" src="Public/mobile/js/layer/layer.js"></script>
    <script type="text/javascript" src="Public/mobile/js/layerModel/jquery.layerModel.js"></script>
    <script type="text/javascript" src="Public/mobile/js/jquery.scrollLoading.js"></script>
    <script type="text/javascript" src="Public/mobile/js/jquery.cookie.js"></script>
    <script type="text/javascript">
        if (__refererType__ == "weixin") {
            document.write('<script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"><\/script>');
        }
    </script>
    <script type="text/javascript" src="Public/mobile/js/common.js?72"></script>

    <script type="text/javascript">
        var isok = 1;
        function chk() {
            if ($("#content").val().length < 5) {
                ShowErrMsg("提问的内容不少于5个字！");
                isok = 0;
            }
            var xzgroupsize = $(':radio[name=classCode]:checked').size();
            if (xzgroupsize == 0) {
                ShowErrMsg("请选择人群！");
                isok = 0;
            }
            var xzcombosize = $(':radio[name=sclass]:checked').size();
            if (xzcombosize == 0) {
                ShowErrMsg("请选择人群体检类型！");
                isok = 0;
            }
            if ($("#age").val().length > 1 && isNaN($("#age").val())) {
                ShowErrMsg("年龄必须为数字！");
                isok = 0;
            }
            if ($("#mobile").val().length > 1 && !isMobile($("#mobile").val())) {
                ShowErrMsg("请输入正确的手机号！");
                isok = 0;
            }
        }
        $(".border_n").click(function () {
            $(".border_n").find("span").removeClass("b_select").addClass("nv");
            $(this).find("span").removeClass("nv").addClass("b_select");
            $("#sex").val($(this).attr("data"));
        });
        $(".xzsp").click(function () {
            $(this).prev().click();
        });
        $(".rqcheck").click(function () {
            $(".wtfl-box").hide();
            $(".tccheck").attr("checked", false);
            $("#dvsclass" + $(this).attr("value")).show();
        });
        $("#AddTopic").click(function () {
            isok = 1;
            $("#errmsg").hide();
            chk();
            if (isok == 0) {
                $(window).scrollTop(0);
                return;
            }
            $("form").submit();
        });
    </script>
    <script type="text/javascript">
        //解析事sem推广
        var hash = location.hash;
        var reg = new RegExp("sem_(bd|360|sg|jt|sm)_(.*)?");
        if (reg.test(hash)) {
            var matchs = reg.exec(hash);
            $.get("/Sem/submit", { channel: matchs[1], keys: matchs[2] }, function () {
            });
        }
    </script>
    <div style="display:none">
        <!--统计代码-->
        <img src="http://c.cnzz.com/wapstat.php?siteid=1253083248&r=http%3A%2F%2Fm.viptijian.com%2FAsk%2Findex&rnd=1998746680" width="0" height="0" />    <!--百度统计代码-->
        <img src="http://hm.baidu.com/hm.gif?si=e23220b7e728f5512d935dd4b95e539d&amp;et=0&amp;nv=1&amp;st=1&amp;lt=1476856310&amp;su=http%3A%2F%2Fm.viptijian.com%2FAsk%2Findex&amp;v=wap-0-0.2&amp;rnd=8848475950" width="0" height="0" />
    </div>
    <script type="text/javascript">
        // 新的百度统计代码
        var _hmt = _hmt || [];
        (function () {
            var hm = document.createElement("script");
            hm.src = "//hm.baidu.com/hm.js?da5f5c0399ed040f41e88552ab48d766";
            var s = document.getElementsByTagName("script")[0];
            s.parentNode.insertBefore(hm, s);
        })();
    </script>
    <!--腾讯统计代码-->
    <script type="text/javascript" src="http://tajs.qq.com/stats?sId=58654145" charset="UTF-8"></script>

    <!-- 第三方客服调用 -->
    <script type='text/javascript' src='//webchat.7moor.com/javascripts/7moorInit.js?accessId=40c7b5a0-5711-11e7-8ece-f731cb02a380&autoShow=false' async='async'></script>
</body>
</html>